package com.bwie.service.impl;

import com.bwie.mapper.DemoMapper;
import com.bwie.pojo.vo.DemoVo;
import com.bwie.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class DemoServiceImpl implements DemoService {
    @Autowired
    private DemoMapper demoMapper;

    @Override
    public List<DemoVo> getListDayMoney() {
        List<DemoVo> list = demoMapper.getListDayMoney();
        return list;
    }

    @Override
    public List<Map<String, Object>> getListMonthMoney() {
       List<Map<String,Object>> list =  demoMapper.getListMonthMoney();


        return list;
    }

    @Override
    public List<DemoVo> getListByDate() {
        List<DemoVo> list = demoMapper.getListByDate();
        return list;
    }

    @Override
    public List<Date> getListMonthDate() {
        List<Date> list = demoMapper.getListMonthDate();
        return list;
    }

    @Override
    public List<Integer> getSumOrder() {
        List<Integer> list = demoMapper.getSumOrder();
        return list;
    }

    @Override
    public List<Integer> getOkOrder() {
        List<Integer> list = demoMapper.getOkOrder();
        return list;
    }

    @Override
    public List<Integer> getNotOrder() {
        List<Integer> list = demoMapper.getNotOrder();
        return list;
    }
}
